package learn.c;

/**
 * 蔬菜
 */
public class Vegetables {
    //名字
    private String name;
    //颜色
    private String colour;
    public Vegetables(){}
    public Vegetables(String name,String colour){
        this.name = name;
        this.colour = colour;
    }
    public void eat(){
        System.out.println(name +"是"+ colour +"的");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColour() {
        return colour;
    }

    public void setColour(String colour) {
        this.colour = colour;
    }
}
